project(color)
cmake_minimum_required(VERSION 3.10)

find_package(OpenCV  REQUIRED)
if(NOT OpenCV_FOUND)
   message(FATAL_ERROR "OpenCV > 3 not found.")
endif()

include_directories(
    ${OpenCV_INCLUDE_DIRS}
)

add_executable(color color.cc)
target_link_libraries(color ${OpenCV_LIBS})